package wsepForum.persistance;

import java.util.Date;
import java.util.Vector;

import wsepForum.common.elements.Message;
import wsepForum.common.elements.SearchResult;

public interface ISearchAdaptor {

	public Vector<SearchResult> searchByAuthor(String authorName) throws Exception;

	public Vector<SearchResult> searchByDate(Date from, Date to) throws Exception;

	public Vector<SearchResult> searchByContent(String sentence) throws Exception;

	public void add(Message message);

	public void remove(Message mesage);

	public void close();

	public void clearDB();

}
